#include "color_printer.h"
#include "printer.h"
#include <stdio.h>
int color_printer_print(struct color_printer *self, const char *msg);
struct printer_i color_printer_interface = {
        .print = (printer_print_func_t)color_printer_print
};

int color_printer_initialize(struct color_printer *self){
        if(self == NULL)
                return -1;
        self->interface = &color_printer_interface;
        return 0;
}

int color_printer_print(struct color_printer *self, const char *msg){
        if(self == NULL)
                return -1;
        printf("\033[47m%s\n", msg);
        printf("\033[0m");
        return 0;
}
